package com.woniuxy.woniumall.service;

import com.woniuxy.woniumall.entity.User;
import com.woniuxy.woniumall.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper ;

    public User login(String username) {
        return userMapper.selectUserByName(username);
    }
}
